package com.ant.storage.mapper;

import com.ant.storage.dto.TimeDto;
import com.ant.storage.pojo.SupplierInformation;
import com.ant.storage.vo.MonthlySettlementVo;
import com.ant.storage.vo.SupplierDetailsVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author melon
 * @since 2022-03-16
 */
public interface SupplierInformationMapper extends BaseMapper<SupplierInformation> {

    List<SupplierInformation> supplierInformationCensus(String supplierId);

    /**
     * 财务通过供应商id查看供应商结算申请明细
     * @param id
     * @return
     */
    List<MonthlySettlementVo> getMonthlySettlementById(@Param("id") Integer id);

    List<SupplierDetailsVo> details(TimeDto dto);
}
